package com.shop.admin.response;

import com.shop.web.response.Ret;

/**
 * 项目错误码表
 */
public enum AdminRetEnum implements Ret {

    /** -------------------- main ---------------------------- */
    ADMIN_NOT_EXISTS("20001", "管理员不存在!"),
    ADMIN_NAME_OR_PWD_ERROR("20002", "用户名或密码错误!"),
    ADMIN_IS_LOCKED("20003", "该账号已被锁定!"),
    ADMIN_LOGIN_FAIL("20004", "登录失败!"),
    ADMIN_LOGIN_PWD_VALID_EXCPTION("20005", "登录密码格式校验失败!"),
    ADMIN_OLD_PWD_IS_NOT_EQUALS("20006", "旧密码不匹配，请重新输入!"),
    ADMIN_PWD_LENGTH_NOT_VALID("20007", "密码长度必须为6-20位!"),

    /** -------------------- admin ---------------------------- */
    ADMIN_NAME_IS_EXISTS("20101", "该用户名已存在，请重新输入!"),


    ;



    private String code;
    private String msg;

    AdminRetEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
